package com.next

class OpportunityContactType
{
    String name
    String type

    static constraints = {
        name maxSize: 16, unique: true
        type maxSize: 16, nullable: true, blank: true
        type inList: ["type", "relation"]
    }

    static mapping = {
        autoTimestamp true
        cache true
    }

    String toString()
    {
        name
    }
}
